<div class="message_popup" id="ajax_message" style="display:none">
	<div class="inner" style="text-align:right;">
		<span class="popup_control" onclick="document.getElementById('ajax_message').style.display = 'none'">
			X
		</span>
	</div>
	<span id="ajax_message_text"></span>
	<br />
	<br />
	<input type="button" value=" OK " class="button2" onclick="document.getElementById('ajax_message').style.display = 'none'" />
</div>
<script type="text/javascript" src="includes/JsHttpRequest.js">
</script>
<script type="text/javascript">
var cX = 0;
var cY = 0;
var IE = false;
var FF = false;
var OP = false;
var timer = null;

if ( document.all && document.getElementById && !window.opera ) {
    IE = true;
}
if ( !document.all && document.getElementById && !window.opera ) {
    FF = true;
}
if ( document.all && document.getElementById && window.opera ) {
    OP = true;
}

function getMousePosition(e, id) {
	if(!e) var e = window.event;
	if (e.pageX || e.pageY) {
		cX = e.pageX;
		cY = e.pageY;
	}
	else if (e.clientX || e.clientY) {
		cX = e.clientX + document.documentElement.scrollLeft;
		cY = e.clientY + document.documentElement.scrollTop;
	}
	var div = document.getElementById(id);
	div.style.top = String(cY) + "px";
	div.style.left = String(cX+10) + "px";
	div.style.width = String(document.body.clientWidth - cX - 40) + "px";
	return { 'x' : cX, 'y' : cY };
}

function ajax_message_box(text)
{
	document.getElementById('ajax_message').style.display = 'block';
	document.getElementById('ajax_message_text').innerHTML = text;
}
</script>
